<template>
  <el-alert show-icon :closable="false" class="tool-tip">
    <template #title>
      <el-row style="width: 100%" type="flex" justify="space-between" align="middle">
        <el-col>
          <slot name="before" />
        </el-col>
        <el-col>
          <el-row type="flex" justify="end">
            <slot name="after" />
          </el-row>
        </el-col>
      </el-row>
    </template>
  </el-alert>
</template>

<script>
export default {
  name: 'ToolBar'
}
</script>

<style scoped lang="scss">
.tool-tip {
  border: 1px solid rgba(145, 213, 255, 1);
  background: rgba(230, 247, 255, 1);
}
</style>
